package com.bootdo.program.film.service.impl;

import com.bootdo.program.film.dao.FilmCategoryDao;
import com.bootdo.program.film.domain.FilmCategoryDO;
import com.bootdo.program.film.service.FilmCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;




@Service
public class FilmCategoryServiceImpl implements FilmCategoryService {
	@Autowired
	private FilmCategoryDao filmCategoryDao;

	@Override
	public FilmCategoryDO get(Long id){
		return filmCategoryDao.get(id);
	}

	@Override
	public List<FilmCategoryDO> list(Map<String, Object> map){
		return filmCategoryDao.list(map);
	}

	@Override
	public int count(Map<String, Object> map){
		return filmCategoryDao.count(map);
	}

	@Override
	public int save(FilmCategoryDO filmCategory){
		return filmCategoryDao.save(filmCategory);
	}

	@Override
	public int update(FilmCategoryDO filmCategory){
		return filmCategoryDao.update(filmCategory);
	}

	@Override
	public int remove(Long id){
		return filmCategoryDao.remove(id);
	}

	@Override
	public int batchRemove(Long[] ids){
		return filmCategoryDao.batchRemove(ids);
	}

}
